package cn.com.springsource.ioc.lifecyclecallback;



import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class ContextApplication {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(Spring.class);
        IndexDao indexDao = (IndexDao) context.getBean("indexDao");
        indexDao.test();
        System.out.println("---------分割线----------");
        context.registerShutdownHook();
    }
}
